<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Hello, world! webrx</title>
</head>
<body>
<style>
    table {
        /* 控制元素居中 */
        margin: 0 auto;
        width: 500px;
        border-collapse: collapse;
    }

    th, td {
        padding: 15px;
        border: 1px dashed rgba(128, 128, 128, 0.36);
        text-align: center;
    }

    thead tr:first-child {
        background-color: rgba(128, 128, 128, 0.15) !important;
    }

    tr:nth-of-type(odd) {
        background-color: rgba(0, 0, 255, 0.10);
    }

    tr:nth-of-type(even) {
        background-color: rgba(255, 255, 0, 0.10);
    }

    tbody {
        color: #333;
    }

    tbody tr:hover {
        cursor: pointer;
        background-color: rgba(0, 0, 0, 0.20);
    }
</style>
<table>
    <thead>
    <tr>
        <th>学号</th>
        <th>姓名</th>
        <th>专业</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td>202301006</td>
        <td>张三</td>
        <td>计算机科学</td>
    </tr>
    <tr>
        <td>202301016</td>
        <td>张丽</td>
        <td>会计</td>
    </tr>
    <tr>
        <td>202301325</td>
        <td>张三丰</td>
        <td>计算机科学</td>
    </tr>
    <tr>
        <td>202301325</td>
        <td>张三丰</td>
        <td>计算机科学</td>
    </tr>
    <tr>
        <td>202301325</td>
        <td>张丰</td>
        <td>计算机科学</td>
    </tr>
    <tr>
        <td>202301325</td>
        <td>张三</td>
        <td>计算机科学</td>
    </tr>
    </tbody>
    <tfoot>
    <tr>
        <td colspan="1000">
            分页效果
        </td>
    </tr>
    </tfoot>
</table>
</body>
</html>
